<?php
$str = 'string 好';
echo count($str), PHP_EOL;
echo strlen($str), PHP_EOL;
echo mb_strlen($str), PHP_EOL;
